


#include <stdafx.h>
#include <SwordBible.h>
#include <SBLocalize.h>
#include <BibleSheet.h>



RESOURCE SBLocalize::ResourceSet[MAX_RESOURCES];




MAP SBLocalize::BibleMenu[BIBLE_RMB_MENUITEMS] = {
	{ID_BIBLE_DICT_LOOKUP,        ITEM_LOOKUP           },    
	{ID_BIBLE_SEARCH,             ITEM_WORDSEARCH       }, 
	{ID_BIBLE_VL,                 ITEM_ADDTOLIST        },
	{ID_SEPARATOR,                ITEM_SEPARATOR        },   
	{ID_BIBLE_PRINT,              ITEM_PRINT            },
	{ID_SEPARATOR,                ITEM_SEPARATOR        },   
	{ID_BIBLE_SELECTALL,          ITEM_SELECTALL        },      
	{ID_BIBLE_COPY,               ITEM_COPY             },   
	{ID_BIBLEPAGE_COPYMANAGER,    ITEM_COPYVERSES       }, 
	{ID_SEPARATOR,                ITEM_SEPARATOR        },
	{ID_BIBLE_DISPLAY,            ITEM_DISPLAYSETTINGS  }, 
	{ID_BIBLE_ZOOMTEXT,           ITEM_ZOOMTEXT         },
	{ID_BIBLE_SPLITVIEW,          ITEM_SPLITDISPLAY     }, 
	{ID_SEPARATOR,                ITEM_SEPARATOR        },         
	{ID_BIBLE_PREVIOUSCHAPTER,    ITEM_PREVIOUSCHAPTER  }, 
	{ID_BIBLE_NEXTCHAPTER,        ITEM_NEXTCHAPTER      },  
	{ID_SEPARATOR,                ITEM_SEPARATOR        },
	{ID_BIBLE_INFORMATION,        ITEM_INFO             }
};

MAP SBLocalize::CompareMenu[COMPARE_RMB_MENUITEMS] = {
{ ID_COMPARE_DICT_LOOKUP,    ITEM_LOOKUP        },
{ ID_COMPARE_SEARCH,         ITEM_WORDSEARCH    },
{ ID_SEPARATOR,              ITEM_SEPARATOR     },
{ ID_COMPARE_PRINT,          ITEM_PRINT         },
{ ID_SEPARATOR,              ITEM_SEPARATOR     },
{ ID_COMPARE_SELECTALL,      ITEM_SELECTALL     },
{ ID_COMPARE_COPY,           ITEM_COPY          },
{ ID_SEPARATOR,              ITEM_SEPARATOR     },
{ ID_COMPARE_ZOOM,           ITEM_ZOOMTEXT      },
{ ID_SEPARATOR,              ITEM_SEPARATOR     },
{ ID_COMPARE_PREVIOUS,       ITEM_PREVIOUSVERSE },
{ ID_COMPARE_NEXT,           ITEM_NEXTVERSE     }
};


MAP SBLocalize::ParallelMenu[PARALLEL_RMB_MENUITEMS] = {
 { ID_PARALLEL_PRINT,              ITEM_PRINT             },
 { ID_SEPARATOR,                   ITEM_SEPARATOR         },
 { ID_PARALLEL_SELECTALL,          ITEM_SELECTALL         },
 { ID_PARALLEL_COPY,               ITEM_COPY              },
 { ID_SEPARATOR,                   ITEM_SEPARATOR         },
 { ID_PARALLEL_ZOOM,               ITEM_ZOOMTEXT          },
 { ID_SEPARATOR,                   ITEM_SEPARATOR         },
 { ID_PARALLEL_PREVIOUS,           ITEM_PREVIOUSCHAPTER   },
 { ID_PARALLEL_NEXT,               ITEM_NEXTCHAPTER       },
};

MAP SBLocalize::NotesMenu[NOTES_RMB_MENUITEMS] = {

{   ID_NOTES_PREVIOUSCHAPTER,	   ITEM_PREVIOUSCHAPTER  },
{   ID_NOTES_NEXTCHAPTER,	       ITEM_NEXTCHAPTER      }, 
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_SAVE,	             ITEM_SAVE             },                        
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_PRINT,	             ITEM_PRINT            },                  
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_SYNCHRONIZE,	       ITEM_SYNCH            },                
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_CUT,	               ITEM_CUT              },                       
{   ID_NOTES_COPY,	             ITEM_COPY             },                      
{   ID_NOTES_PASTE,	             ITEM_PASTE            },                       
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_BOLD,	             ITEM_BOLD             },                      
{   ID_NOTES_ITALIC,	           ITEM_ITALIC           },                    
{   ID_NOTES_UNDERLINE,	         ITEM_UNDERLINE        },                  
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_LEFTALIGN,	         ITEM_LEFTALIGN        },               
{   ID_NOTES_CENTERALIGN,	       ITEM_CENTERALIGN      },              
{   ID_NOTES_RIGHTALIGN,	       ITEM_RIGHTALIGN       },              
{   ID_SEPARATOR,	               ITEM_SEPARATOR        },
{   ID_NOTES_INSERTBULLETS,	     ITEM_BULLETS          }
};

MAP SBLocalize::ComMenu[COM_RMB_MENUITEMS] = {

{  ID_COM_DICT_LOOKUP,             ITEM_LOOKUP          },
{  ID_COM_SEARCH,	                 ITEM_WORDSEARCH      },
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_COMMENTARY_PRINT,	           ITEM_PRINT           } ,             
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_COMMENTARY_SYNCHRONIZE,	     ITEM_SYNCH           },           
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_COMMENTARY_COPY,	           ITEM_COPY            },              
{  ID_COMMENTARY_SELECTALL,	       ITEM_SELECTALL       },          
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_BOTTOM_DISPLAY,	             ITEM_DISPLAYSETTINGS },      
{  ID_COMMENTARY_ZOOMTEXT,	       ITEM_ZOOMTEXT        },        
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_BOTTOM_SEARCH,	             ITEM_SEARCH          },      
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_COMMENTARY_PREVIOUSCHAPTER,	 ITEM_PREVIOUSCHAPTER },     
{  ID_COMMENTARY_NEXTCHAPTER,	     ITEM_NEXTCHAPTER     },  
{  ID_SEPARATOR,	                 ITEM_SEPARATOR       },
{  ID_COMMENTARY_INFORMATION,	     ITEM_INFO            }

};

MAP SBLocalize::BooksMenu[BOOKS_RMB_MENUITEMS] = {

{ ID_GENBOOKS_DICT_LOOKUP,    ITEM_LOOKUP          },
{ ID_GENBOOKS_SEARCH,         ITEM_WORDSEARCH      },
{ ID_SEPARATOR,               ITEM_SEPARATOR       },
{ ID_GENBOOKS_PRINT,          ITEM_PRINT           },
{ ID_SEPARATOR,               ITEM_SEPARATOR       },
{ ID_GENBOOKS_SELECTALL,      ITEM_SELECTALL       },
{ ID_GENBOOKS_COPY,           ITEM_COPY            },
{ ID_SEPARATOR,               ITEM_SEPARATOR       },
{ ID_GENBOOKS_FONT,           ITEM_DISPLAYSETTINGS },
{ ID_GENBOOKS_ZOOM,           ITEM_ZOOMTEXT        },
{ ID_SEPARATOR,               ITEM_SEPARATOR       },
{ ID_GENBOOKS_PREVIOUS,       ITEM_PREVIOUS        },
{ ID_GENBOOKS_NEXT,           ITEM_NEXT            },
{ ID_SEPARATOR,               ITEM_SEPARATOR       },
{ ID_GENBOOKS_INFORMATION,    ITEM_INFO            }

};

MAP SBLocalize::ReferencesMenu[REFERENCES_RMB_MENUITEMS] = {

{ ID_CROSSLINKSMGR,          ITEM_CROSSLINKSMGR   },
{ ID_SEPARATOR,              ITEM_SEPARATOR       },
{ ID_SCRIPREF_COPY,          ITEM_COPY            },
{ ID_SCRIPREF_SELECTALL,     ITEM_SELECTALL       },
{ ID_SEPARATOR,              ITEM_SEPARATOR       },            
{ ID_SCRIPREF_ZOOM,          ITEM_ZOOMTEXT        } 

};

MAP SBLocalize::DictionaryMenu[DICTIONARY_RMB_MENUITEMS] = {

{ID_DICTIONARY_PRINT,                 ITEM_PRINT            },
{ID_SEPARATOR,                        ITEM_SEPARATOR        },
{ID_DICTIONARY_COPY,                  ITEM_COPY             },
{ID_DICTIONARY_SELECTALL,             ITEM_SELECTALL        },
{ID_SEPARATOR,                        ITEM_SEPARATOR        },
{ID_DICTIONARY_DISPLAY,               ITEM_DISPLAYSETTINGS  },
{ID_DICTIONARY_ZOOMTEXT,              ITEM_ZOOMTEXT         },
{ID_SEPARATOR,                        ITEM_SEPARATOR        },
{ID_DICTIONARY_PREVIOUSENTRY,         ITEM_PREVIOUSENTRY    },
{ID_DICTIONARY_NEXTENTRY,             ITEM_NEXTENTRY        },
{ID_SEPARATOR,                        ITEM_SEPARATOR        },
{ID_DICTIONARY_INFORMATION,           ITEM_INFO             }

};

MAP SBLocalize::VLMenu[VL_RMB_MENUITEMS] = {

{ID_VERSELISTS_DICT_LOOKUP,            ITEM_LOOKUP           },
{ID_VERSELISTS_SEARCH,                 ITEM_WORDSEARCH       },
{ID_SEPARATOR,                         ITEM_SEPARATOR        },
{ID_VERSELISTS_SELECTALL,              ITEM_SELECTALL        },              
{ID_VERSELISTS_COPY,                   ITEM_COPY             },
{ID_SEPARATOR,                         ITEM_SEPARATOR        },
{ID_EDIT_ADDLIST,                      ITEM_ADDLIST          },
{ID_EDIT_RENAME,                       ITEM_RENAMELIST       },
{ID_EDIT_REMOVELIST,                   ITEM_DELETELIST       },
{ID_SEPARATOR,                         ITEM_SEPARATOR        },
{ID_ADDVERSE,                          ITEM_ADDVERSE         },
{ID_EDIT_REMOVEVERSE,                  ITEM_DELETEVERSE      }

};


MAP SBLocalize::MainFrameFileMenu[FILE_NUM_MENUITEMS] = {

{NULL,                           ITEM_FILE         },
{ID_INSTALLMGR,                  ITEM_INSTALLMGR,     IDB_BITMAP_INSTALLMGR   },
{ID_SEPARATOR,                   ITEM_SEPARATOR    },
{ID_APP_EXIT,                    ITEM_EXIT,           IDB_BITMAP_EXIT}

};

MAP SBLocalize::MainFrameOptionsMenu[OPTIONS_NUM_MENUITEMS] = {

{NULL,                           ITEM_OPTIONS        },
{ID_OPTIONS_REMEMBERLAST,        ITEM_REMEMBER       },
{ID_OPTIONS_DEVOTIONAL,          ITEM_DDONSTARTUP    },                  
{ID_SEPARATOR,                   ITEM_SEPARATOR      },
{ID_CROSSREF,                    ITEM_CROSSREF       },
{ID_FOOTNOTES,                   ITEM_FOOTNOTES      },
{ID_HEADINGS,                    ITEM_HEADINGS       },
{ID_LEMMA,                       ITEM_LEMMA          },
{ID_MORPH,                       ITEM_MORPHTAGS      },
{ID_REDCHRIST,                   ITEM_WOC            },
{ID_SEPARATOR,                   ITEM_SEPARATOR      },
{ID_CROSSLINKSMGR,               ITEM_CROSSLINKSMGR,    IDB_BITMAP_CROSSLINKSMGR }

};

MAP SBLocalize::MainFrameViewMenu[VIEW_NUM_MENUITEMS] = {

{NULL,                                ITEM_VIEW           },
{ID_VIEW_TOOLBAR,                     ITEM_TOOLBAR         },
{ID_VIEW_QUICKVERSE_TOOLBAR,          ITEM_QVTOOLBAR       },
{ID_VIEW_STATUS_BAR,                  ITEM_STATUSBAR       },
{ID_SEPARATOR,                        ITEM_SEPARATOR       },
{ID_TOP_MAX,                          ITEM_BIBLEMAX,        IDB_BITMAP_BIBLEMAX      },
{ID_BOTTOM_MAX,                       ITEM_COMMAX,          IDB_BITMAP_COMMAX        },
{ID_NORMAL,                           ITEM_NORMAL,          IDB_BITMAP_NORMALVIEW    },
{ID_SEPARATOR,                        ITEM_SEPARATOR       },
{ID_VIEW_DEVOTIONAL,                  ITEM_DEVOTIONAL,      IDB_BITMAP_DEVOTIONAL    },
{ID_VERSELISTS,                       ITEM_VERSELIST,       IDB_BITMAP_VERSELIST     },  
{ID_SCRIPTURECHALLENGE,               ITEM_SCRIPCHALLENGE,  IDB_BITMAP_CHALLENGE     },

};

MAP SBLocalize::MainFrameBookmarksMenu[BOOKMARKS_NUM_MENUITEMS] = {
{NULL,                      ITEM_BOOKMARKS         },
{ID_ADD_BOOKMARK,           ITEM_ADDBOOKMARKS,     IDB_BITMAP_ADDBOOKMARK      },
{ID_DELETE_BOOKMARK,        ITEM_REMOVEBOOKMARKS,  IDB_BITMAP_REMOVEBOOKMARK   },
{ID_SEPARATOR,              ITEM_SEPARATOR         }

};

MAP SBLocalize::MainFrameHelpMenu[HELP_NUM_MENUITEMS] = {
{NULL,                     ITEM_HELP                                        },
{ID_HELP,                  ITEM_HELPLAUNCH,        IDB_BITMAP_HELP          },
{ID_WEB,                   ITEM_VISITHOMEPAGE,     IDB_BITMAP_HOMEPAGE      },
{ID_MAIL,                  ITEM_MAIL,              IDB_BITMAP_MAIL          },
{ID_DONATE,                ITEM_DONATE,            IDB_BITMAP_DONATE_SMALL  },
{ID_APP_ABOUT,             ITEM_ABOUTSB,           IDB_BITMAP_ABOUT         }

};


void SBLocalize::LoadLanguage(CString lang)
{
	lang += _T(".conf");

	CString path = _T("");
	CBibleSheet::GetAppDirectory(path);
	path = path + _T("\\") +  lang; 

	sword::SWConfig langInfo(path);
	langInfo.Load();
  
  for(int i = 0; i < MAX_RESOURCES; i++) {
   ResourceSet[i].menuStr =  langInfo["item"][ (LPCTSTR) ResourceSet[i].resStr];
   ResourceSet[i].tipStr  =   langInfo["description"][ (LPCTSTR) ResourceSet[i].resStr];
  }

  
  for(int i = ITEM_GENESIS; i <= ITEM_REVELATION; i++) {
    CSwordBibleDoc::bookCode[i - ITEM_GENESIS][1] = ResourceSet[i].menuStr;
    CSwordBibleDoc::bookCode[i - ITEM_GENESIS][0] = ResourceSet[i].tipStr;
  }

    
}

void SBLocalize::Add(int i, CString str1, CString str2, CString str3)
{	
	SBLocalize::ResourceSet[i].resStr = str1;
	SBLocalize::ResourceSet[i].menuStr = str2;
	SBLocalize::ResourceSet[i].tipStr = str3;

}


SBLocalize::SBLocalize(void)
{
	                                            
}

void SBLocalize::LoadEnglish()
{	
SBLocalize::Add(ITEM_LOOKUP,            _T("ITEM_LOOKUP"),                     _T("Lookup:")                                        ,_T("Lookup: ")                                                  );
SBLocalize::Add(ITEM_WORDSEARCH,        _T("ITEM_WORDSEARCH"),                 _T("Search for:")                                   ,_T("Search for: ")                                              );
SBLocalize::Add(ITEM_ADDTOLIST,         _T("ITEM_ADDTOLIST"),                  _T("Add to List:")                                  ,_T("Add to List: ")                                             );
SBLocalize::Add(ITEM_PRINT,             _T("ITEM_PRINT"),                      _T("Print...")                                      ,_T("Print Preview and Print the Text")                          );
SBLocalize::Add(ITEM_SELECTALL,         _T("ITEM_SELECTALL"),                  _T("Select All")                                    ,_T("Select All Displayed Text")                                 );
SBLocalize::Add(ITEM_COPY,              _T("ITEM_COPY"),                       _T("Copy")                                          ,_T("Copy the Selected Text to Clipboard")                       );
SBLocalize::Add(ITEM_COPYVERSES,        _T("ITEM_COPYVERSES"),                 _T("Copy Verses...")                                ,_T("Copy Verses and Paste into Study Notes or Verse Lists")     );
SBLocalize::Add(ITEM_DISPLAYSETTINGS,   _T("ITEM_DISPLAYSETTINGS"),            _T("Display Settings...")                           ,_T("Set Color and Font Display Options for the Text")           );
SBLocalize::Add(ITEM_ZOOMTEXT,          _T("ITEM_ZOOMTEXT"),                   _T("Zoom Text")                                     ,_T("Zoom the Displayed Text")                                   );
SBLocalize::Add(ITEM_SPLITDISPLAY,      _T("ITEM_SPLITDISPLAY"),               _T("Split Display")                                 ,_T("Split the View into Two Windows")                           );
SBLocalize::Add(ITEM_PREVIOUSCHAPTER,   _T("ITEM_PREVIOUSCHAPTER"),            _T("Previous Chapter")                              ,_T("Previous Chapter")                                          );
SBLocalize::Add(ITEM_NEXTCHAPTER,       _T("ITEM_NEXTCHAPTER"),                _T("Next Chapter")                                  ,_T("Next Chapter")                                              );
SBLocalize::Add(ITEM_INFO,              _T("ITEM_INFO"),                       _T("Information...")                                ,_T("Information...")                                            );
SBLocalize::Add(ITEM_SAVE,              _T("ITEM_SAVE"),                       _T("Save")                                          ,_T("Save")                                                      );
SBLocalize::Add(ITEM_SYNCH,             _T("ITEM_SYNCH"),                      _T("Synchronize")                                   ,_T("Synchronize")                                               );
SBLocalize::Add(ITEM_CUT,               _T("ITEM_CUT"),                        _T("Cut")                                           ,_T("Cut")                                                       );
SBLocalize::Add(ITEM_PASTE,             _T("ITEM_PASTE"),                      _T("Paste")                                         ,_T("Paste")                                                     );
SBLocalize::Add(ITEM_BOLD,              _T("ITEM_BOLD"),                       _T("Bold")                                          ,_T("Bold")                                                      );
SBLocalize::Add(ITEM_ITALIC,            _T("ITEM_ITALIC"),                     _T("Italic")                                        ,_T("Italic")                                                    );
SBLocalize::Add(ITEM_UNDERLINE,         _T("ITEM_UNDERLINE"),                  _T("Underline")                                     ,_T("Underline")                                                 );
SBLocalize::Add(ITEM_LEFTALIGN,         _T("ITEM_LEFTALIGN"),                  _T("Left Align")                                    ,_T("Left Align")                                                );
SBLocalize::Add(ITEM_CENTERALIGN,       _T("ITEM_CENTERALIGN"),                _T("Center Align")                                  ,_T("Center Align")                                              );
SBLocalize::Add(ITEM_RIGHTALIGN,        _T("ITEM_RIGHTALIGN"),                 _T("Right Align")                                   ,_T("Right Align")                                               );
SBLocalize::Add(ITEM_BULLETS,           _T("ITEM_BULLETS"),                    _T("Insert Bullets")                                ,_T("Insert Bullets")                                            );
SBLocalize::Add(ITEM_SEARCH,            _T("ITEM_SEARCH"),                     _T("Search...")                                     ,_T("Search...")                                                 );
SBLocalize::Add(ITEM_PREVIOUS,          _T("ITEM_PREVIOUS"),                   _T("Previous")                                      ,_T("Previous")                                                  );
SBLocalize::Add(ITEM_NEXT,              _T("ITEM_NEXT"),                       _T("Next")                                          ,_T("Next")                                                      );
SBLocalize::Add(ITEM_PREVIOUSENTRY,     _T("ITEM_PREVIOUSENTRY"),              _T("Previous Entry")                                ,_T("Previous Entry")                                            );
SBLocalize::Add(ITEM_NEXTENTRY,         _T("ITEM_NEXTENTRY"),                  _T("Next Entry")                                    ,_T("Next Entry")                                                );
SBLocalize::Add(ITEM_CROSSLINKSMGR,     _T("ITEM_CROSSLINKSMGR"),              _T("Cross-Links Manager...")                        ,_T("Cross-Links Manager...")                                       );
SBLocalize::Add(ITEM_PREVIOUSVERSE,     _T("ITEM_PREVIOUSVERSE"),              _T("Previous Verse")                                ,_T("Previous Verse")                                            );
SBLocalize::Add(ITEM_NEXTVERSE,         _T("ITEM_NEXTVERSE"),                  _T("Next Verse")                                    ,_T("Next Verse")                                                );
SBLocalize::Add(ITEM_FILE,              _T("ITEM_FILE"),                       _T("File")                                          ,_T("File")                                                      );
SBLocalize::Add(ITEM_INSTALLMGR,        _T("ITEM_INSTALLMGR"),                 _T("Install Manager...")                            ,_T("Install Manager...")                                        );
SBLocalize::Add(ITEM_EXIT,              _T("ITEM_EXIT"),                       _T("Exit")                                          ,_T("Exit")                                                      );
SBLocalize::Add(ITEM_OPTIONS,           _T("ITEM_OPTIONS"),                    _T("Options")                                      ,_T("Options")                                                    );
SBLocalize::Add(ITEM_REMEMBER,          _T("ITEM_REMEMBER"),                   _T("Remember Last Active Verse on Startup")         ,_T("Remember Last Active Verse on Startup")                     );
SBLocalize::Add(ITEM_DDONSTARTUP,       _T("ITEM_DDONSTARTUP"),                _T("Show Daily Devotional on Startup")              ,_T("Show Daily Devotional on Startup")                          );
SBLocalize::Add(ITEM_CROSSREF,          _T("ITEM_CROSSREF"),                   _T("Cross-references")                              ,_T("Cross-references")                                          );
SBLocalize::Add(ITEM_FOOTNOTES,         _T("ITEM_FOOTNOTES"),                  _T("Footnotes")                                     ,_T("Footnotes")                                                 );
SBLocalize::Add(ITEM_HEADINGS,          _T("ITEM_HEADINGS"),                   _T("Headings")                                      ,_T("Headings")                                                  );
SBLocalize::Add(ITEM_LEMMA,             _T("ITEM_LEMMA"),                      _T("Lemma")                                         ,_T("Lemma")                                                     );
SBLocalize::Add(ITEM_MORPHTAGS,         _T("ITEM_MORPHTAGS"),                  _T("Morphological Tags")                            ,_T("Morphological Tags")                                        );
SBLocalize::Add(ITEM_WOC,               _T("ITEM_WOC"),                        _T("Words of Christ in Red")                        ,_T("Words of Christ in Red")                                    );
SBLocalize::Add(ITEM_VIEW,              _T("ITEM_VIEW"),                       _T("View")                                          ,_T("View")                                                      );
SBLocalize::Add(ITEM_TOOLBAR,           _T("ITEM_TOOLBAR"),                    _T("Toolbar")                                       ,_T("Toolbar")                                                   );
SBLocalize::Add(ITEM_QVTOOLBAR,         _T("ITEM_QVTOOLBAR"),                  _T("Quick Verse Toolbar")                           ,_T("Quick Verse Toolbar")                                       );
SBLocalize::Add(ITEM_STATUSBAR,         _T("ITEM_STATUSBAR"),                  _T("Status Bar")                                    ,_T("Status Bar")                                                );
SBLocalize::Add(ITEM_BIBLEMAX,          _T("ITEM_BIBLEMAX"),                   _T("Bible Maximized")                               ,_T("Bible Maximized")                                           );
SBLocalize::Add(ITEM_COMMAX,            _T("ITEM_COMMAX"),                     _T("Commentary Maximized")                          ,_T("Commentary Maximized")                                      );
SBLocalize::Add(ITEM_NORMAL,            _T("ITEM_NORMAL"),                     _T("Normal View")                                   ,_T("Normal View")                                               );
SBLocalize::Add(ITEM_DEVOTIONAL,        _T("ITEM_DEVOTIONAL"),                 _T("Daily Devotional...")                           ,_T("Daily Devotional...")                                       );
SBLocalize::Add(ITEM_VERSELIST,         _T("ITEM_VERSELIST"),                  _T("Verse List...")                                 ,_T("Verse List...")                                             );
SBLocalize::Add(ITEM_SCRIPCHALLENGE,    _T("ITEM_SCRIPCHALLENGE"),             _T("Scripture Challenge...")                        ,_T("Scripture Challenge...")                                    );
SBLocalize::Add(ITEM_BOOKMARKS,         _T("ITEM_BOOKMARKS"),                  _T("Bookmarks")                                     ,_T("Bookmarks")                                                 );
SBLocalize::Add(ITEM_ADDBOOKMARKS,      _T("ITEM_ADDBOOKMARKS"),               _T("Add Bookmark")                                  ,_T("Add Bookmark")                                              );
SBLocalize::Add(ITEM_REMOVEBOOKMARKS,   _T("ITEM_REMOVEBOOKMARKS"),            _T("Remove BookMark...")                            ,_T("Remove BookMark...")                                        );
SBLocalize::Add(ITEM_HELP,              _T("ITEM_HELP"),                       _T("Help")                                          ,_T("Help")                                                      );
SBLocalize::Add(ITEM_HELPLAUNCH,        _T("ITEM_HELPLAUNCH"),                 _T("Help...")                                       ,_T("Help...")                                                   );
SBLocalize::Add(ITEM_VISITHOMEPAGE,     _T("ITEM_VISITHOMEPAGE"),              _T("Visit Homepage...")                            ,_T("Visit Homepage...")                                          );
SBLocalize::Add(ITEM_MAIL,              _T("ITEM_MAIL"),                       _T("Sugestions and Bug Reports...")                ,_T("Sugestions and Bug Reports...")                              );
SBLocalize::Add(ITEM_DONATE,             _T("ITEM_DONATE"),                    _T("Donate to SwordBible...")                     ,_T("Donate to SwordBible...")                                     );
SBLocalize::Add(ITEM_ABOUTSB,           _T("ITEM_ABOUTSB"),                    _T("About SwordBible 5.42...")                      ,_T("About SwordBible 5.42...")                                  );
SBLocalize::Add(ITEM_PRINTLIST,         _T("ITEM_PRINTLIST"),                  _T("Print List..")                                  ,_T("Print List..")                                              );
SBLocalize::Add(ITEM_EDIT,              _T("ITEM_EDIT"),                       _T("Edit")                                          ,_T("Edit")                                                      );
SBLocalize::Add(ITEM_ADDLIST,           _T("ITEM_ADDLIST"),                    _T("Add List")                                      ,_T("Add List")                                                  );
SBLocalize::Add(ITEM_RENAMELIST,        _T("ITEM_RENAMELIST"),                 _T("Rename List")                                   ,_T("Rename List")                                               );
SBLocalize::Add(ITEM_DELETELIST,        _T("ITEM_DELETELIST"),                 _T("Delete List")                                   ,_T("Delete List")                                               );
SBLocalize::Add(ITEM_ADDVERSE,          _T("ITEM_ADDVERSE"),                   _T("Add Verse")                                     ,_T("Add Verse")                                                 );
SBLocalize::Add(ITEM_DELETEVERSE,       _T("ITEM_DELETEVERSE"),                _T("Delete Verse")                                  ,_T("Delete Verse")                                              );
SBLocalize::Add(ITEM_MOVE,              _T("ITEM_MOVE"),                       _T("Move")                                          ,_T("Move")                                                      );
SBLocalize::Add(ITEM_NEXTLIST,          _T("ITEM_NEXTLIST"),                   _T("Next List")                                     ,_T("Next List")                                                 );
SBLocalize::Add(ITEM_PREVIOUSLIST,      _T("ITEM_PREVIOUSLIST"),               _T("Previous List")                                 ,_T("Previous List")                                             );
SBLocalize::Add(ITEM_BIBLE,             _T("ITEM_BIBLE"),                      _T("Bible")                                         ,_T("Bible")                                                     );
SBLocalize::Add(ITEM_SELECTVERSION,     _T("ITEM_SELECTVERSION"),              _T("Select Version...")                             ,_T("Select Version...")                                         );
SBLocalize::Add(ITEM_SEPARATOR,         _T("ITEM_SEPARATOR"),                  _T("Separator")                                     ,_T("Separator")                                                 );




SBLocalize::Add(ITEM_BIBLEPAGE,             _T("ITEM_BIBLEPAGE"),                  _T("Bibles"),                                          _T("")                                                    ); 
SBLocalize::Add(ITEM_COMPAREPAGE,           _T("ITEM_COMPAREPAGE"),                _T("Compare"),                                         _T("")                                                    );
SBLocalize::Add(ITEM_PARALLELPAGE,          _T("ITEM_PARALLELPAGE"),               _T("Parallel"),                                        _T("")                                                    );
SBLocalize::Add(ITEM_NOTESPAGE,             _T("ITEM_NOTESPAGE"),                  _T("Notes"),                                           _T("")                                                    );
SBLocalize::Add(ITEM_COMPAGE,               _T("ITEM_COMPAGE,"),                   _T("Commentaries"),                                    _T("")                                                    );
SBLocalize::Add(ITEM_BOOKSPAGE,             _T("ITEM_BOOKSPAGE"),                  _T("Books"),                                           _T("")                                                    );
SBLocalize::Add(ITEM_LEXPAGE,               _T("ITEM_LEXPAGE"),                    _T("Lexicons / Dictionaries"),                         _T("")                                                    );
SBLocalize::Add(ITEM_SCRIPREFPAGE,          _T("ITEM_SCRIPREFPAGE"),               _T("Scripture Reference"),                             _T("")                                                    );
SBLocalize::Add(ITEM_DEVOTIONPAGE,          _T("ITEM_DEVOTIONPAGE"),               _T("Daily Devotional"),                                _T("")                                                    );
SBLocalize::Add(ITEM_DAILYBIBLEPAGE,        _T("ITEM_DAILYBIBLEPAGE"),             _T("Daily Bible"),                                     _T("")                                                    );

SBLocalize::Add(ITEM_VERSELISTHEADING,       _T("ITEM_VERSELISTHEADING"),            _T("Verse Lists"),                                   _T("")                                                    );
SBLocalize::Add(ITEM_CROSSLINKSHEADING,      _T("ITEM_CROSSLINKSHEADING"),           _T("Cross-Links Manager"),                           _T("")                                                    );
SBLocalize::Add(ITEM_DEVOTIONHEADING,        _T("ITEM_DEVOTIONHEADING"),             _T("Daily Devotional"),                              _T("")                                                    );
SBLocalize::Add(ITEM_SCRIPCHALLENGEHEADING,  _T("ITEM_SCRIPCHALLENGEHEADING"),       _T("Scripture Challenge"),                           _T("")                                                    );


SBLocalize::Add(ITEM_RESTARTMSG,        _T("ITEM_RESTARTMSG"),                _T("Please restart program for new language settings!"), _T("")                                                    ); 

SBLocalize::Add(ITEM_GENESIS,                   _T("ITEM_GENESIS"),                _T("Gen"),          _T("Genesis")            );
SBLocalize::Add(ITEM_EXODUS,                    _T("ITEM_EXODUS"),                 _T("Exod"),         _T("Exodus")             );
SBLocalize::Add(ITEM_LEVITICUS,                 _T("ITEM_LEVITICUS"),              _T("Lev"),          _T("Leviticus")          );
SBLocalize::Add(ITEM_NUMBERS,                   _T("ITEM_NUMBERS"),                _T("Num"),          _T("Numbers")            );
SBLocalize::Add(ITEM_DEUTERONOMY,               _T("ITEM_DEUTERONOMY"),            _T("Deut"),         _T("Deuteronomy")        );
SBLocalize::Add(ITEM_JOSHUA,                    _T("ITEM_JOSHUA"),                 _T("Josh"),         _T("Joshua")             );
SBLocalize::Add(ITEM_JUDGES,                    _T("ITEM_JUDGES"),                 _T("Judg"),         _T("Judges")             );
SBLocalize::Add(ITEM_RUTH,                      _T("ITEM_RUTH"),                   _T("Ruth"),         _T("Ruth")               );
SBLocalize::Add(ITEM_ISAMUEL,                   _T("ITEM_ISAMUEL"),                _T("1Sam"),         _T("I Samuel")           );
SBLocalize::Add(ITEM_IISAMUEL,                  _T("ITEM_IISAMUEL"),               _T("2Sam"),         _T("II Samuel")          );
SBLocalize::Add(ITEM_IKINGS,                    _T("ITEM_IKINGS"),                 _T("1Kgs"),         _T("I Kings")            );
SBLocalize::Add(ITEM_IIKINGS,                   _T("ITEM_IIKINGS"),                _T("2Kgs"),         _T("II Kings")           );
SBLocalize::Add(ITEM_ICHRONICLES,               _T("ITEM_ICHRONICLES"),            _T("1Chr"),         _T("I Chronicles")       );
SBLocalize::Add(ITEM_IICHRONICLES,              _T("ITEM_IICHRONICLES"),           _T("2Chr"),         _T("II Chronicles")      );
SBLocalize::Add(ITEM_EZRA,                      _T("ITEM_EZRA"),                   _T("Ezra"),         _T("Ezra")               );
SBLocalize::Add(ITEM_NEHEMIAH,                  _T("ITEM_NEHEMIAH"),               _T("Neh"),          _T("Nehemiah")           );
SBLocalize::Add(ITEM_ESTHER,                    _T("ITEM_ESTHER"),                 _T("Esth"),         _T("Esther")             );
SBLocalize::Add(ITEM_JOB,                       _T("ITEM_JOB"),                    _T("Job"),          _T("Job")                );
SBLocalize::Add(ITEM_PSALMS,                    _T("ITEM_PSALMS"),                 _T("Ps"),           _T("Psalms")             );
SBLocalize::Add(ITEM_PROVERBS,                  _T("ITEM_PROVERBS"),               _T("Prov"),         _T("Proverbs")           );
SBLocalize::Add(ITEM_ECCLESIASTES,              _T("ITEM_ECCLESIASTES"),           _T("Eccl"),         _T("Ecclesiastes")       );
SBLocalize::Add(ITEM_SONGOFSOLOMON,             _T("ITEM_SONGOFSOLOMON"),          _T("Song"),         _T("Song of Solomon")    );
SBLocalize::Add(ITEM_ISAIAH,                    _T("ITEM_ISAIAH"),                 _T("Isa"),          _T("Isaiah")             );
SBLocalize::Add(ITEM_JEREMIAH,                  _T("ITEM_JEREMIAH"),               _T("Jer"),          _T("Jeremiah")           );
SBLocalize::Add(ITEM_LAMENTATIONS,              _T("ITEM_LAMENTATIONS"),           _T("Lam"),          _T("Lamentations")       );
SBLocalize::Add(ITEM_EZEKIEL,                   _T("ITEM_EZEKIEL"),                _T("Ezek"),         _T("Ezekiel")            );
SBLocalize::Add(ITEM_DANIEL,                    _T("ITEM_DANIEL"),                 _T("Dan"),          _T("Daniel")             );
SBLocalize::Add(ITEM_HOSEA,                     _T("ITEM_HOSEA"),                  _T("Hos"),          _T("Hosea")              );
SBLocalize::Add(ITEM_JOEL,                      _T("ITEM_JOEL"),                   _T("Joel"),         _T("Joel")               );
SBLocalize::Add(ITEM_AMOS,                      _T("ITEM_AMOS"),                   _T("Amos"),         _T("Amos")               );
SBLocalize::Add(ITEM_OBADIAH,                   _T("ITEM_OBADIAH"),                _T("Obad"),         _T("Obadiah")            );
SBLocalize::Add(ITEM_JONAH,                     _T("ITEM_JONAH"),                  _T("Jonah"),        _T("Jonah")              );
SBLocalize::Add(ITEM_MICAH,                     _T("ITEM_MICAH"),                  _T("Mic"),          _T("Micah")              );
SBLocalize::Add(ITEM_NAHUM,                     _T("ITEM_NAHUM"),                  _T("Nah"),          _T("Nahum")              );
SBLocalize::Add(ITEM_HABAKKUK,                  _T("ITEM_HABAKKUK"),               _T("Hab"),          _T("Habakkuk")           );
SBLocalize::Add(ITEM_ZEPHANIAH,                 _T("ITEM_ZEPHANIAH"),              _T("Zeph"),         _T("Zephaniah")          );
SBLocalize::Add(ITEM_HAGGAI,                    _T("ITEM_HAGGAI"),                 _T("Hag"),          _T("Haggai")             );
SBLocalize::Add(ITEM_ZECHARIAH,                 _T("ITEM_ZECHARIAH"),              _T("Zech"),         _T("Zechariah")          );
SBLocalize::Add(ITEM_MALACHI,                   _T("ITEM_MALACHI"),                _T("Mal"),          _T("Malachi")            );
SBLocalize::Add(ITEM_MATTHEW,                   _T("ITEM_MATTHEW"),                _T("Matt"),         _T("Matthew")            );
SBLocalize::Add(ITEM_MARK,                      _T("ITEM_MARK"),                   _T("Mark"),         _T("Mark")               );
SBLocalize::Add(ITEM_LUKE,                      _T("ITEM_LUKE"),                   _T("Luke"),         _T("Luke")               );
SBLocalize::Add(ITEM_JOHN,                      _T("ITEM_JOHN"),                   _T("John"),         _T("John")               );
SBLocalize::Add(ITEM_ACTS,                      _T("ITEM_ACTS"),                   _T("Acts"),         _T("Acts")               );
SBLocalize::Add(ITEM_ROMANS,                    _T("ITEM_ROMANS"),                 _T("Rom"),          _T("Romans")             );
SBLocalize::Add(ITEM_ICORINTHIANS,              _T("ITEM_ICORINTHIANS"),           _T("1Cor"),         _T("I Corinthians")      );
SBLocalize::Add(ITEM_IICORINTHIANS,             _T("ITEM_IICORINTHIANS"),          _T("2Cor"),         _T("II Corinthians")     );
SBLocalize::Add(ITEM_GALATIANS,                 _T("ITEM_GALATIANS"),              _T("Gal"),          _T("Galatians")          );
SBLocalize::Add(ITEM_EPHESIANS,                 _T("ITEM_EPHESIANS"),              _T("Eph"),          _T("Ephesians")          );
SBLocalize::Add(ITEM_PHILIPPIANS,               _T("ITEM_PHILIPPIANS"),            _T("Phil"),         _T("Philippians")        );
SBLocalize::Add(ITEM_COLOSSIANS,                _T("ITEM_COLOSSIANS"),             _T("Col"),          _T("Colossians")         );
SBLocalize::Add(ITEM_ITHESSALONIANS,            _T("ITEM_ITHESSALONIANS"),         _T("1Thess"),       _T("I Thessalonians")    );
SBLocalize::Add(ITEM_IITHESSALONIANS,           _T("ITEM_IITHESSALONIANS"),        _T("2Thess"),       _T("II Thessalonians")   );
SBLocalize::Add(ITEM_ITIMOTHY,                  _T("ITEM_ITIMOTHY"),               _T("1Tim"),         _T("I Timothy")          );
SBLocalize::Add(ITEM_IITIMOTHY,                 _T("ITEM_IITIMOTHY"),              _T("2Tim"),         _T("II Timothy")         );
SBLocalize::Add(ITEM_TITUS,                     _T("ITEM_TITUS"),                  _T("Titus"),        _T("Titus")              );
SBLocalize::Add(ITEM_PHILEMON,                  _T("ITEM_PHILEMON"),               _T("Phlm"),         _T("Philemon")           );
SBLocalize::Add(ITEM_HEBREWS,                   _T("ITEM_HEBREWS"),                _T("Heb"),          _T("Hebrews")            );
SBLocalize::Add(ITEM_JAMES,                     _T("ITEM_JAMES"),                  _T("Jas"),          _T("James")              );
SBLocalize::Add(ITEM_IPETER,                    _T("ITEM_IPETER"),                 _T("1Pet"),         _T("I Peter")            );
SBLocalize::Add(ITEM_IIPETER,                   _T("ITEM_IIPETER"),                _T("2Pet"),         _T("II Peter")           );
SBLocalize::Add(ITEM_IJOHN,                     _T("ITEM_IJOHN"),                  _T("1John"),        _T("I John")             );
SBLocalize::Add(ITEM_IIJOHN,                    _T("ITEM_IIJOHN"),                 _T("2John"),        _T("II John")            );
SBLocalize::Add(ITEM_IIIJOHN,                   _T("ITEM_IIIJOHN"),                _T("3John"),        _T("III John")           );
SBLocalize::Add(ITEM_JUDE,                      _T("ITEM_JUDE"),                   _T("Jude"),         _T("Jude")               );
SBLocalize::Add(ITEM_REVELATION,                _T("ITEM_REVELATION"),             _T("Rev"),          _T("Revelation of John") );

for(int i = ITEM_GENESIS; i <= ITEM_REVELATION; i++) {
    CSwordBibleDoc::bookCode[i - ITEM_GENESIS][1] = ResourceSet[i].menuStr;
    CSwordBibleDoc::bookCode[i - ITEM_GENESIS][0] = ResourceSet[i].tipStr;
  }


 }

SBLocalize::~SBLocalize(void)
{
}

void SBLocalize::CreateEnglishFile()
{

  CString path = _T("");
	CBibleSheet::GetAppDirectory(path);
	path = path + _T("\\english.conf"); 

	sword::SWConfig langInfo(path);


  for(int i = 0; i < MAX_RESOURCES; i++) {
    langInfo["item"][ (LPCTSTR) ResourceSet[i].resStr] = ResourceSet[i].menuStr ;
    langInfo["description"][ (LPCTSTR) ResourceSet[i].resStr] = ResourceSet[i].tipStr ;
  }
    

  langInfo.Save();


}

